<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html>
  <head> 
	<%@ include file="/platform/style.jsp"%>
	<style>
		.state3{color:red}
		.state2{color:blue}
	</style>
	<script>
	function query(){
		$w.execForm()
	}
	function show(id){
		$w.openDialog({url:ctx+'/user/UserPage@showCompanyAuth.page?bean.id='+id,title:"查看企业认证信息",w:700,h:450,maximized:true,afterClose:function(re){
			if(re){
				query();
			}
		}});
	}
	</script>
  </head>
  
  <body class="easyui-layout">
	<div data-options="region:'center'" class="bodybg">
		<!-- 查询区域 -->
		<form id="queryForm" action="/user/UserPage@comauthList.page" method="post">
		<w:hidden bind="pageNum"/>
		<w:hidden bind="pageSize_"/>
		<div class="easyui-panel ui-queryBar" border="false" data-options="doSize:false">
			<table cellpadding="0" cellspacing="0" style="margin-top:5px">
				<tr>
					<td width="80" align="right">企业名称：</td><td><w:text bind="bean.name" style="width:120px;"/></td>
					<td width="80" align="right">企业类型：</td><td><select name="bean.type"><option value=""></option><w:options bind="bean.type" dict="CompanyType"/></select></td>
					<td width="80" align="right">审核状态：</td><td><select name="bean.state"><option value="">全部</option><w:option bind="bean.state" value="1">待审核</w:option><w:option bind="bean.state" value="2">已通过</w:option><w:option bind="bean.state" value="3">不通过</w:option></select></td>
					<td>
						&nbsp;<a href="javascript:;" class="easyui-linkbutton" iconCls="icon_search" onclick="query()">查询</a>
					</td>
				</tr>
			</table>
		</div>
		
		<div class="ui_line" style="margin-top:10px"></div>
		<!-- 数据列表区域 -->
			<table class="ui-table" width="100%" cellpadding="1" cellspacing="1" data-options="showPage:true,
																								pageNum:<w:write bind="pageNum"/>,
																								pageSize:<w:write bind="pageSize_"/>,
																								total:<w:write bind="pagination.totalCount"/>,form:'queryForm'">
				<thead>
					<tr class="ui_th">
						<td width="35">ID</td>
						<td width="90">企业类型</td>
						<td width="100">营业执照</td>
						<td>企业名称</td>
						<td width="100">联系人</td>
						<td width="100">手机号码</td>
						<td width="90">所属区域</td>
						<td width="160">详细地址</td>
						<td width="80">提交时间</td>
						<td width="80">审核状态</td>
						<td width="60" align="center">操作</td>
					</tr>
				</thead>
				<tbody>
				<w:iterate id="info" bind="resultList_">
					<tr class="ui_td">
						<td><w:write bind="#info.id"/></td>
						<td><w:write bind="#info.type" dict="CompanyType"/></td>
						<td><w:write bind="#info.idnum"/></td>
						<td><w:write bind="#info.name"/></td>
						<td><w:write bind="#info.contacts"/></td>
						<td><w:write bind="#info.phone"/></td>
						<td><w:write bind="#info.province"/><w:write bind="#info.city"/><w:write bind="#info.region"/></td>
						<td><w:write bind="#info.address"/></td>
						<td><w:write bind="#info.submittime" format="yyyy-MM-dd"/></td>
						<td><font class="state<w:write bind="#info.state"/>"><w:write bind="#info.state" format="[,待审核,已通过,不通过]"/></font></td>
						<td align="center">
						<a href="javascript:void(0);" class="ui_btn" onclick="show(<w:write bind="#info.id"/>)">查看</a>
						</td>
					</tr>
				</w:iterate>
				</tbody>
			</table>
		</form>
	</div>
  </body>
</html>
